package com.infore.siteManagement.OutSide.Controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.infore.siteManagement.OutSide.Service.IDataAuditService;
import com.infore.siteManagement.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**暴露给数据审核外部接口**/
@Api(value = "数据审核外部接口", tags = {"数据审核外部接口"})
@RestController
@RequestMapping("/dataAudit")
public class DataAuditController {

	@Autowired
	private IDataAuditService iDataAuditService;
	
	@ApiOperation(value = "根据站点mn获取因子信息")
    @ResponseBody
    @PostMapping(value = "/queryProjectByMn")
    public ResultEntity queryProjectByMn(@RequestParam(value="mns",required=false) List<String> mns) {
        return iDataAuditService.queryProjectByMn(mns);
    }
}
